From f26209181bade738de195e8015cfd726592d60a2 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 23 Oct 2013 16:46:46 -0400 Subject: [PATCH] * configure.ac: Explicit error for non-ASCII directories --- ChangeLog | 2 ++ configure.ac | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5b4f47d551f..f55b4c5a86a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2013-10-23 Glenn Morris + * configure.ac: Explicit error for non-ASCII directories. (Bug#15260) + Progress towards allowing installation in directories with whitespace. * Makefile.in (COPYDESTS, write_subdir, install-arch-dep) (install-arch-indep, install-etcdoc, install-info, install-man) diff --git a/configure.ac b/configure.ac index d88f1d39b66..74ac7695cdc 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,17 @@ dnl Support for --program-prefix, --program-suffix and dnl --program-transform-name options AC_ARG_PROGRAM +dnl http://debbugs.gnu.org/15260 +for var in "`pwd`" "`cd \"$srcdir\"; pwd`" "$bindir" \ + "$datadir" "$sharedstatedir" "$libexecdir"; do + + dnl configure sets LC_ALL=C early on, so this range should work. + case "$var" in + *[[^\ -~]]*) AC_MSG_ERROR([Emacs cannot be built or installed in a directory whose name contains non-ASCII characters: $var]) ;; + esac + +done + dnl It is important that variables on the RHS not be expanded here, dnl hence the single quotes. This is per the GNU coding standards, see dnl (autoconf) Installation Directory Variables -- 2.30.2